
<!DOCTYPE html>
<html class="client-nojs" lang="en" dir="ltr">
<head>
<meta charset="UTF-8"/>
<title>Hugin stacker - PanoTools.org Wiki</title>




<style media="screen" type="text/css" title="Screen style sheet"> @import url(manual.css); </style>

<meta name="generator" content="MediaWiki 1.35.3"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>





<!--[if lt IE 9]><![endif]-->
</head>
<body class="mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-Hugin_stacker rootpage-Hugin_stacker skin-vector action-view skin-vector-legacy">


<div id="content" class="mw-body" role="main">
	<a id="top"></a>
	
	
	<h1 id="firstHeading" class="firstHeading" lang="en">Hugin stacker</h1>
	<div id="bodyContent" class="mw-body-content">
		<div id="siteSub" class="noprint">From PanoTools.org Wiki</div>
		
		
		
		
		
		
		<div id="mw-content-text" lang="en" dir="ltr" class="mw-content-ltr"><div class="mw-parser-output"><p><b>hugin_stacker</b> stacks overlapping images to a single image.
</p><p>The general usage is
</p>
<pre> hugin_stacker [options] --mode=STRING images
</pre>
<p>There are several stack modes (switch <tt>--mode</tt>) available:
</p>
<ul><li><tt>min|minimum|darkest</tt>: Select the darkest pixel</li>
<li><tt>max|maximum|brightest</tt>: Select the brightest pixel</li>
<li><tt>avg|average|mean</tt>: Calculate the mean for each position</li>
<li><tt>median</tt>: Calculate the median for each position</li>
<li><tt>winsor</tt>: Calculate the Winsor trimmed mean for each position. The parameter can be set with <tt>--winsor-trim=NUMBER</tt> (default: 0.2)</li>
<li><tt>sigma</tt>: Calculate the sigma clipped mean for each position. Fine-tune with <tt>--max-sigma=NUMBER</tt> (default: 2) and <tt>--max-iterations=NUMBER</tt> (default: 5)</li></ul>
<p>This is useful for e.g.
</p>
<ul><li>automatic tourist removal (not only tourists, also other moving objects&#160;;-))</li>
<li>noise reduction</li>
<li>visualize movement</li>
<li>multiplicity</li></ul>
<h2><a name="Further_parameters"><span class="mw-headline">Further parameters</span></a></h2>
<ul><li><tt>--output=FILE</tt>: Set the filename for the output file (if not given <tt>final.tif</tt> is used).</li>
<li><tt>--compression=value</tt>: Set the compression of the output files
<ul><li>For jpeg files use values between 0 and 100</li>
<li>For tiff files valid values are: PACKBITS, DEFLATE, LZW</li></ul></li></ul>
<h2><a name="Mask_input_images"><span class="mw-headline">Mask input images</span></a></h2>
<p>Beside the stacked output hugin_stacker can also mask the input images (available only for stacking modes median|winsor|clip). This mode is activated with <tt>--mask-input</tt>. In this case the stacked image is calculated first. Then each pixel in each image is checked: if the value of this pixel differs more then mask sigma * standard deviation from the mean/median, this pixel is made visible. If it is in the mentioned range the pixel is masked out.
</p><p>The sigma parameter for this step can be changed with <tt>--mask-sigma=NUMBER</tt> (default is 2).
</p><p>You can output a separate mask image for each input image. Set the suffix with <tt>--mask-suffix=STRING</tt> (default is <tt>_mask</tt>).
Or with the option <tt>--multi-layer-output</tt> you can output a layered TIFF with the name specified with <tt>--output</tt>. The file contains the averaged image as layer 0 and all input images as additional layers with the mask as described above.
</p>

<!--
Transclusion expansion time report (%,ms,calls,template)
100.00%    0.000      1 -total
-->


</div></div><div class="printfooter">Retrieved from "<a dir="ltr" href="https://wiki.panotools.org/index.php?title=Hugin_stacker&amp;oldid=16217">https://wiki.panotools.org/index.php?title=Hugin_stacker&amp;oldid=16217</a>"</div>
		</div></div></body></html>